package com.yanqu.road.entity.activity.shuihuyezipai.config;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2021/12/6 17:46
 */
@FieldTypeAnnotation(tableName = "t_s_activity_yezicard_buff")
public class ShuiHuYeZiCardBuffConfig {

    @FieldTypeAnnotation(desc = "活动ID", update = true, select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "效果id", update = true)
    private int id;
    /**
     * 效果类型  1 手牌中有1张则点数+
     *          2 弃牌堆中有1张，则点数+
     *          3 点数+
     */
    @FieldTypeAnnotation(desc = "效果类型")
    private int type;
    @FieldTypeAnnotation(desc = "参数列表 变更的点数|所属阵营|0|0")
    private String par;
    @FieldTypeAnnotation(desc = "持续回合")
    private String round;
    @FieldTypeAnnotation(desc = "随机限制")
    private String condition;
    @FieldTypeAnnotation(desc = "效果权重")
    private int weight;

    /**
     * 参赛列表
     */
    public List<Integer> parList = new ArrayList<>();

    /**
     * 持续回合 k:回合数 v:权重
     */
    public Map<Integer,Integer> roundMap = new HashMap<>();

    /**
     * 持续回合数区间 []
     */
    public List<Integer> conditionList = new ArrayList<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPar() {
        return par;
    }

    public void setPar(String par) {
        this.par = par;
    }

    public String getRound() {
        return round;
    }

    public void setRound(String round) {
        this.round = round;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
